function QueryBtn() {
    var data = { "Fname": "", "FidCard": "", "Fnumber": "" };
    // 姓名
    data.Fname = $("#cname").val();
    // 身份证
    data.FidCard = $("#idcard").val();
    // 证书编号
    data.Fnumber = $("#certificatenum").val();
    // 查询值不能为空
    if ($("#cname").val() == "" && $("#idcard").val() == "" && $("#certificatenum").val() == "") {
        $("#coo_query_success").empty();
        $("#coo_query_none").css('display', 'flex');
        $("#coo_query_success").css('display', 'none');
        $("#coo_query_error").css('display', 'none');
        return;
    }
    $.ajax({
        url: "/hiroute/certificateInterface.do?pn=plat/0000221",
        type: "POST",
        dataType: "json",
        data: JSON.stringify(data),
        contentType: "application/json",
        success: (res) => {
            //debugger;
            var dataLength = res.data.length;
            // 返回的数据
            var resData = res.data;
            if (dataLength > 0) {
                // 删除div列表下的子节点
                $("#coo_query_success").empty();
                $("#coo_query_success").css('display', 'block');
                $("#coo_query_none").css('display', 'none');
                $("#coo_query_error").css('display', 'none');
                for (var i in resData) {
                    // 姓名
                    var Fname = resData[i].Fname != undefined ? Fname = resData[i].Fname : Fname = "";
                    // 能力等级
                    var Flevel = resData[i].Flevel != undefined ? Flevel = resData[i].Flevel : Flevel = "";
                    // 身份证号
                    var FidCard = resData[i].FidCard != undefined ? FidCard = resData[i].FidCard : FidCard = "";
                    // 资格期限
                    var FdeadLine = resData[i].FdeadLine != undefined ? FdeadLine = resData[i].FdeadLine.slice(0, 11) : FdeadLine = "";
                    // 证书编号
                    var Fnumber = resData[i].Fnumber != undefined ? Fnumber = resData[i].Fnumber : Fnumber = "";
                    // 备注
                    var Fnote = resData[i].Fnote != undefined ? Fnote = resData[i].Fnote : Fnote = "";
                    var dataHtml = `<ul class="coo_cont_list">
                            <li class="coo_cont_item">
                                <div class="coo_cont_label">
                                    姓名
                                </div>
                                <div class="coo_cont_desc">
                                    ${Fname}
                                </div>
                            </li>
                            <li class="coo_cont_item">
                                <div class="coo_cont_label">
                                    能力等级
                                </div>
                                <div class="coo_cont_desc">
                                    ${Flevel}
                                </div>
                            </li>
                            <li class="coo_cont_item">
                                <div class="coo_cont_label">
                                    身份证号
                                </div>
                                <div class="coo_cont_desc">
                                    ${FidCard}
                                </div>
                            </li>
                            <li class="coo_cont_item">
                                <div class="coo_cont_label">
                                    资格期限
                                </div>
                                <div class="coo_cont_desc">
                                    ${FdeadLine}
                                </div>
                            </li>
                            <li class="coo_cont_item">
                                <div class="coo_cont_label">
                                    证书编号
                                </div>
                                <div class="coo_cont_desc">
                                ${Fnumber}
                                </div>
                            </li>
                            <li class="coo_cont_item">
                                <div class="coo_cont_label">
                                    备注
                                </div>
                                <div class="coo_cont_desc">
                                    ${Fnote}
                                </div>
                            </li>
                        </ul>`;
                    // 添加数据
                    $("#coo_query_success").append(dataHtml);
                }

            } else {
                $("#coo_query_none").css('display', 'none');
                $("#coo_query_success").css('display', 'none');
                $("#coo_query_error").css('display', 'flex');
            }
        },
    });
}

$(function () {
    window.onscroll = function () {
        if (scrollY >= 300) {
            $(".st_head").addClass("active")
        } else {
            $(".st_head").removeClass("active")
        }
    }
    resizeBase
    $(window).on("resize", function () {
        $(".st_point").removeClass("active")
        resizeBase()
    });

    $(".st_ph_menu").click(function (e) {
        e.stopPropagation();
        $(this).find(".st_point").toggleClass("active");
        $(".st_nav").stop().slideToggle();
    });

});

function resizeBase() {
    var baseW = $(window).width();
    if (baseW > 767) {
        $(".st_nav").css("display", "flex")
    } else {
        $(".st_nav").css("display", "none")
    }

}




var aa = {
    "defaultCdions": {
        "queryCdions": {
            "join": "and",
            "items": [
                {
                    "items": [
                        {
                            "sign": "eq",
                            "name": "varchara1",
                            "value": "1"

                        },
                        {
                            "sign": "gteq",
                            "name": "inta2",
                            "value": "1"

                        },
                    ],
                    "join": "and"
                }

            ]
        }
    },
}

var aa = {
    "defaultCdions": {
        "queryCdions": {
            "join": "and",
            "items": [
                {
                    "items": [
                        {
                            "sign": "eq",
                            "name": "varchara1",
                            "value": "1"

                        },
                    ],
                    "join": "and"
                }

            ]
        }
    },
}
